﻿<%@ Page Title="" Language="C#" MasterPageFile="~/markview/Site.Master" AutoEventWireup="true" CodeFile="Mark.aspx.cs" Inherits="markview.WebForm1" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 453px;
        }
        .style2
        {
            width: 453px;
            height: 26px;
        }
        .style3
        {
            height: 26px;
        }
    </style>
    </asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2 align="center">
        MarK</h2>
    <p>
        <table style="width:100%;">
            <tr>
                <td align="center" class="style1">
                    <asp:Label ID="Label1" runat="server" Text="Student ID :"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlid" runat="server" DataSourceID="SqlDataSource1" 
                        DataTextField="studentID" DataValueField="studentID" Height="15px" 
                        Width="140px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:MarkViewManageConnectionString %>" 
                        SelectCommand="SELECT [studentID] FROM [Mark]"></asp:SqlDataSource>
                </td>
                </tr>
        </table>
    </p>
    <p>
        <table style="width:100%;">
            <tr>
                <td align="center" class="style1">
                    <asp:Label ID="Label2" runat="server" Text="Subject"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlsubject" runat="server" DataSourceID="SqlDataSource2" 
                        DataTextField="subject" DataValueField="subject" Height="15px" Width="140px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:MarkViewManageConnectionString %>" 
                        SelectCommand="SELECT [subject] FROM [Subject]"></asp:SqlDataSource>
                </td>
                </tr>
        </table>
    </p>
    <p>
        <table style="width:100%;">
            <tr>
                <td align="center" class="style2">
                    <asp:Label ID="Label3" runat="server" Text="Mark"></asp:Label>
                </td>
                <td align="left" class="style3">
                    <asp:TextBox ID="txtmark" runat="server" Width="70px"></asp:TextBox>
                </td>
                </tr>
        </table>
    </p>
    <p align="center">
        <asp:Button ID="btnadd" runat="server" Text="Add" />
        <asp:Button ID="btnedit" runat="server" Text="Edit" />
        <asp:Button ID="btndel" runat="server" Text="Delete" />
    </p>
    <p align="center">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True">
            <HeaderStyle BackColor="#3399FF" />
        </asp:GridView>
    </p>
</asp:Content>
